aliases:
- Hosting large files
- hosting media files
- Obsidian Publish/Hosting media files
cssclasses:
- soft-embed
permalink: publish/media
Obsidian Publish allows you to host notes and various media types, including images and video clips, with a limit of 4 GB per site. For more details, please refer to our accepted file formats.
You can upload files up to 50mb in size to your Publish site.
This page provides tips to help you optimize your media files hosted on Publish.
When uploading images directly to Publish, it's best to use .svg
, .webp
, and .png
formats. We also recommend optimizing all images to reduce their file size while preserving visual quality.
Images slow the loading time of the page, and take valuable Publish storage space. Optimizing images allows a reduction in file size, but maintains the visual integrity of the image.
Both images and icons should be optimized.
Here are a some recommended programs for reducing the size of your images.
We recommend an optimization rate of 65-75%.
If you're using an external service to host an image, we still recommend sizing the image as needed according to our embedding instructions.
PDFs come in various sizes and complexities. To optimize the performance of embedded PDFs in Publish, we recommend compressing the files and removing any unnecessary images. Most PDF editors offer these capabilities.
Publish is not optimized for hosting large videos, GIFs, or audio files. Embedding internally hosted and linked videos is not recommended if you plan to host numerous files of these types.
For hosting a limited number of files, we recommend using the following formats:
Video
.mp4
.webm
.hevc
or .av1
(Note: Not widely supported)Audio
.aac
.mp3
.opus